/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_proc_attr.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PROC_ATTR
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_proc_attr.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "app97_global.h" 
#include "db_ppm_proc_attr.hxx"

CTable_PPM_PROC_ATTR::CTable_PPM_PROC_ATTR( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PROC_ATTR" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  APP_TYPE.setField( "APP_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( APP_TYPE );
  ATTR_OBJ_TYPE.setField( "ATTR_OBJ_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( ATTR_OBJ_TYPE );
  ATTR_PROC_SEQ.setField( "ATTR_PROC_SEQ", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_PROC_SEQ );
  OBJ_ID.setField( "OBJ_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( OBJ_ID );
  ATTR_ATTR_TYPE.setField( "ATTR_ATTR_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( ATTR_ATTR_TYPE );
  ATTR_PROC_TYPE.setField( "ATTR_PROC_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( ATTR_PROC_TYPE );
  ATTR_VALUES.setField( "ATTR_VALUES", DATA_CHAR, 4000, 0 );
  makeTableItem( ATTR_VALUES );
  ATTR_PARAM_A.setField( "ATTR_PARAM_A", DATA_CHAR, 4000, 0 );
  makeTableItem( ATTR_PARAM_A );
  ATTR_PARAM_B.setField( "ATTR_PARAM_B", DATA_CHAR, 4000, 0 );
  makeTableItem( ATTR_PARAM_B );
  ATTR_STATE.setField( "ATTR_STATE", DATA_CHAR, 6, 0 );
  makeTableItem( ATTR_STATE );
  ATTR_TYPE.setField( "ATTR_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( ATTR_TYPE );
  AREA_ID.setField( "AREA_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( AREA_ID );
  REAL_MODIFY_DATE.setField( "REAL_MODIFY_DATE", DATA_DATETIME, 14, 0 );
  makeTableItem( REAL_MODIFY_DATE );
}


CTable_PPM_PROC_ATTR::CTable_PPM_PROC_ATTR( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PROC_ATTR" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  APP_TYPE.setField( "APP_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( APP_TYPE );
  ATTR_OBJ_TYPE.setField( "ATTR_OBJ_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( ATTR_OBJ_TYPE );
  ATTR_PROC_SEQ.setField( "ATTR_PROC_SEQ", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_PROC_SEQ );
  OBJ_ID.setField( "OBJ_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( OBJ_ID );
  ATTR_ATTR_TYPE.setField( "ATTR_ATTR_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( ATTR_ATTR_TYPE );
  ATTR_PROC_TYPE.setField( "ATTR_PROC_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( ATTR_PROC_TYPE );
  ATTR_VALUES.setField( "ATTR_VALUES", DATA_CHAR, 4000, 0 );
  makeTableItem( ATTR_VALUES );
  ATTR_PARAM_A.setField( "ATTR_PARAM_A", DATA_CHAR, 4000, 0 );
  makeTableItem( ATTR_PARAM_A );
  ATTR_PARAM_B.setField( "ATTR_PARAM_B", DATA_CHAR, 4000, 0 );
  makeTableItem( ATTR_PARAM_B );
  ATTR_STATE.setField( "ATTR_STATE", DATA_CHAR, 6, 0 );
  makeTableItem( ATTR_STATE );
  ATTR_TYPE.setField( "ATTR_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( ATTR_TYPE );
  AREA_ID.setField( "AREA_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( AREA_ID );
  REAL_MODIFY_DATE.setField( "REAL_MODIFY_DATE", DATA_DATETIME, 14, 0 );
  makeTableItem( REAL_MODIFY_DATE );
}

CTable_PPM_PROC_ATTR::~CTable_PPM_PROC_ATTR( )
{
    close();
}

